package terminal.network;

import java.util.Random;


/**
 * 
 * @author Maks
 * Klient. Testowe
 *
 */

public class Client {
	static ConnectionT cm = null;
	static Random generator = new Random();
	
	public static void main(String[] args){

		int port = 9999;
		String host = "localhost";
		
		cm = new ConnectionT();
		try {
			cm.connect(port, host);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		while(true){
			try {
				Thread.sleep(2000);
				int numer = Math.abs(generator.nextInt());
				//cm.sendUp("Wiadomosc!", numer);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		
	}
}
